package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.ManualBind;

import java.util.List;
import java.util.Set;

public interface ManualBindManager {

    ManualBind getManualBindById(DataSourceKey key, Long id);

    List<ManualBind> getManualBinds(DataSourceKey key, int start, int limit);

    List<ManualBind> getOwns(DataSourceKey key, int start, int limit);

    int getOwnsCount(DataSourceKey key);

    ManualBind saveManualBind(DataSourceKey key, ManualBind manualBind);

    ManualBind getManualBindByName(DataSourceKey key, String name);

    void deleteManualBindById(DataSourceKey key, Long id);

    int getInfoCount(DataSourceKey key, Long id);

    int getManualBindCount(DataSourceKey key);

    // 总部查询下发某个驻地失败的的mb数量
    int getFailedCount(DataSourceKey key, String siteCode);

    int getListIncludeFailedMbsCount(DataSourceKey key);

    void saveManualBindAll(DataSourceKey key, ManualBind manualBind, List<String> infoCodes, InfoManager infoManager);

    Set<ManualBind> getListIncludeFailedMbs(DataSourceKey key, int start, int limit, String siteCode);

    void deleteManualBindAll(DataSourceKey key, ManualBind mb);
}
